package com.hq.service.impl;

import com.hq.dao.DDDao;
import com.hq.pojo.DDdan;
import com.hq.service.DDService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DDServiceImpl implements DDService {
    @Resource
    DDDao ddDao;
    @Override
    public List list(String dddatep, String dddatex, String dddated, String ddbh, String name, String yxj, String pricex, String priced, String beizhu, String lxr, String address, String phone, String gh, String zdname, String zddatex, String zddated) {
        return ddDao.list(dddatep,
                dddatex,
                dddated,
                ddbh,
                name,
                yxj,
                pricex,
                priced,
                beizhu,
                lxr,
                address,
                phone,
                gh,
                zdname,
                zddatex,
                zddated);
    }

    @Override
    public int adddingdan(DDdan dDdan) {
        return ddDao.adddingdan(dDdan);
    }

    @Override
    public int delids(String id) {
        System.out.println(
                "删除的编号Wie"+id
        );
        return ddDao.delids(id);
    }
}
